/* 反回英文名称 */
interface FacList {
  cname: string;
  ename: string;
  isactive: string;
  siteid: string;
}
export const rename = (faclist: FacList[], text: string): string => {
  let rEname = text;
  if (!faclist.length || !text) return rEname;
  for (const item of faclist) {
    if (item['siteid'] === text) {
      // return item['ename'];
      rEname = item['ename'];
      break;
    }
  }
  return rEname;
};
